<script type="text/javascript">
  $(function(){
    $(".his_infos h1 a").click(function(){
      $(".send-message-block").toggle();
      return false;
    })
    $(".cancle").click(function(){
      $(this).hide();
      $(".pay-attention").toggle();
    })
    $(".pay-attention").click(function(){
      $(this).hide();
      $(".cancle").toggle();
    })
    $(".link-comment").click(function(){
      $(this).parents(".bottom").next(".comment").toggle();
      return false;
    })
  })
</script>
<div class="header">
  <div class="login-infos">
    <p><a href="/weibo"><%= current_user.name%></a>&nbsp;&nbsp;|&nbsp;&nbsp;<%= link_to '退出', user_session_path, :method => 'delete' %></p>
  </div>
  <div class="logo"><a href="/weibo"><img src="/images/logo.gif" alt="logo"/></a></div>
  <div class="search">
    <div class="search-inner">
      <a href="/favorite">我的收藏</a>
      <a href="/user">找人</a>
      <div style="float: right">
        <a href="">微博搜索</a>
        <% form_tag "/search",:method=>:get do -%>
          <%= text_field_tag "content", params[:content]%>
          <%= submit_tag "搜索",:class => "submit"%>
        <% end %>
      </div>
    </div>
  </div>
</div>